import Vue from 'vue'
import Router from 'vue-router'
import Login from '../views/login/login.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/Login'
    },
    {
      path: '/Login',
      name: 'Login',
      component: resolve => require(["@/views/login/login"], resolve),
      hidden: true
    },
    {
      path: '/Home',
      name: 'Home',
      component: resolve => require(["@/views/home/home"], resolve),
      hidden: true
    },
    {
      path: '/ledSystemArchitecture/:2',
      name: 'ledSystemArchitecture',
      component: resolve => require(["@/components/content/systemArchitecture/ledSystemArchitecture"], resolve),
      hidden: true
    },
    {
      path: '/ledIntroduce/:1',
      name: 'ledIntroduce',
      component: resolve => require(["@/components/content/introduce/ledIntroduce"], resolve),
      hidden: true
    },
    {
      path: '/ledControl/:3',
      name: 'ledControl',
      component: resolve => require(["@/components/content/control/ledControl"], resolve),
      hidden: true
    },
    {
      path: '/beepIntroduce/:4',
      name: 'beepIntroduce',
      component: resolve => require(["@/components/content/introduce/beepIntroduce"], resolve),
      hidden: true
    },
    {
      path: '/beepSystemArchitecture/:5',
      name: 'beepSystemArchitecture',
      component: resolve => require(["@/components/content/systemArchitecture/beepSystemArchitecture"], resolve),
      hidden: true
    },
    {
      path: '/beepControl/:6',
      name: 'beepControl',
      component: resolve => require(["@/components/content/control/beepControl"], resolve),
      hidden: true
    },
    {
      path: '/temperatureIntroduce/:7',
      name: 'temperatureIntroduce',
      component: resolve => require(["@/components/content/introduce/temperatureIntroduce"], resolve),
      hidden: true
    },
    {
      path: '/temperatureSystemArchitecture/:8',
      name: 'temperatureSystemArchitecture',
      component: resolve => require(["@/components/content/systemArchitecture/temperatureSystemArchitecture"], resolve),
      hidden: true
    },
    {
      path: '/temperatureControl/:9',
      name: 'temperatureControl',
      component: resolve => require(["@/components/content/control/temperatureControl"], resolve),
      hidden: true
    }
  ]
})
